package GUI;

import java.awt.*;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import com.jgoodies.forms.factories.DefaultComponentFactory;
import javax.swing.ImageIcon;
/**
 * This class creates instance of ParformanceReportGui	
 * to display when needed
 * @author 
 *
 */
public class ParformanceRep_GUI extends JPanel {
	
	private static final long serialVersionUID = 1L;
	private JTextField appDay;
	public JTextField getAppDay() {
		return appDay;
	}
	public void setAppDay(JTextField appDay) {
		this.appDay = appDay;
	}
	public JButton getBtnBack() {
		return btnBack;
	}
	public void setBtnBack(JButton btnBack) {
		this.btnBack = btnBack;
	}
	public JTextField getAddDay() {
		return addDay;
	}
	public void setAddDay(JTextField addDay) {
		this.addDay = addDay;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	private JButton btnBack;
	private JTextField addDay;
	
	/**
	 *  the constructor
	 */
	public ParformanceRep_GUI(){
		super();
		appDay = new JTextField();
		addDay = new JTextField();
		btnBack = new JButton("Back"); 
		btnBack.setIcon(new ImageIcon(ParformanceRep_GUI.class.getResource("/Picture/go-back-icon.png")));
		initiate();
	
}
	/**
	 * This method initializes the ParformanceReportGui
	 */
	public void initiate(){
		
		JLabel lblNum = new JLabel("Number of approved extention days:");
		lblNum.setFont(new Font("Arial", Font.BOLD, 13));
		lblNum.setBounds(10, 129, 237, 50);
		add(lblNum);
		
		appDay.setBounds(276, 141, 114, 29);
		add(appDay);
		appDay.setColumns(10);
		
		setLayout(null);
		setSize(new Dimension(500, 635));
		
		btnBack.setFont(new Font("Arial", Font.BOLD, 12));
		btnBack.setBounds(10, 502, 137, 50);
		add(btnBack);
		
		JLabel label = new JLabel("Number of additional days:");
		label.setFont(new Font("Arial", Font.BOLD, 13));
		label.setBounds(10, 341, 237, 50);
		add(label);
		
		addDay.setColumns(10);
		addDay.setBounds(276, 353, 114, 29);
		add(addDay);
		
		JLabel lblNewJgoodiesTitle = DefaultComponentFactory.getInstance().createTitle("             Parformance Report");
		lblNewJgoodiesTitle.setFont(new Font("David", Font.BOLD | Font.ITALIC, 17));
		lblNewJgoodiesTitle.setIcon(new ImageIcon(ParformanceRep_GUI.class.getResource("/Picture/Activity-Monitor-System-Monitor-or-Task-Manager-icon.png")));
		lblNewJgoodiesTitle.setBounds(23, 0, 367, 118);
		add(lblNewJgoodiesTitle);
	}
	/**
	 * 
	 * @return JTextField with the approval day of extension 
	 */

}

